javascript:
function%20isScreen(x){
p=location.search;
r=new%20RegExp('\\b'+x+'\\b', "i");
if(p.match(r)){return%201;}else{location.search=p.replace(/.*?(\bvillage=\d+).*/i,'?$1&'+x);return%200;}}
if(isScreen('screen=overview_villages&mode=incomings'){
function%20c(){
var as=$("a[href]").find(":contains('Attack')");
if(as){
as.each(function(i,e){if(i==(as.length-1)){window.location=e.parentNode.href;}});}}
c();}
end();